package cn.edu.scau.cmi.chenjia.simpleFactoryMethod;

public class MeatFactory {
		public static Meat getMeat(String meatTypeString) {
			Meat meat=null;
			switch (meatTypeString) {
			case "beef":
				meat = new Beef();
				break;
			case "pork":
				meat = new Pork();
				break;
			case "chicken":
				meat=new Chicken();
				break;
			default:
				break;
			}
			return meat;
		}
}
